import request from '@/utils/request'

// 查询员工列表
export function listEmployee(query) {
  return request({
    url: '/system/employee/list',
    method: 'get',
    params: query
  })
}

// 查询员工详细
export function getEmployee(empid) {
  return request({
    url: '/system/employee/' + empid,
    method: 'get'
  })
}

// 新增员工
export function addEmployee(data) {
  return request({
    url: '/system/employee',
    method: 'post',
    data: data
  })
}

// 修改员工
export function updateEmployee(data) {
  return request({
    url: '/system/employee',
    method: 'put',
    data: data
  })
}

// 删除员工
export function delEmployee(empid) {
  return request({
    url: '/system/employee/' + empid,
    method: 'delete'
  })
}

// 查询司机列表
export function listDriverAll() {
  return request({
    url: '/system/employee/list/all/driver',
    method: 'get'
  })
}
// 查询业务员列表
export function listSalesmanAll() {
  return request({
    url: '/system/employee/list/all/salesman',
    method: 'get'
  })
}

//查询订单下拉框
export function orderNotWaybillAll() {
  return request({
    url: '/system/orderbill/orderNotWaybill',
    method: 'get'
  })
}
// 查询员工列表
export function listEmployeeAll() {
  return request({
    url: '/system/employee/list/all',
    method: 'get'
  })
}
